#include <stdio.h>

#define N 7

int main()
{
    int arr[N] = {1, 2, 3, 4, 5, 6, 7};

    for (int i = 0; i < N / 2; i++)
    {
        int temp = arr[i];
        arr[i] = arr[N - 1 - i];
        arr[N - 1 - i] = temp;
    }

    for (int i = 0; i < N; i++)
    {
        printf("arr[%d] = %d\n", i,arr[i]);
    }

    return 0;
}